package com.baseproject.datasource.get.request.params;

import java.util.Map;

/**
 * cache/本地请求所需参数
 */

public class LocalRequestParams extends RequestParams {

    /**
     * 本地请求时为sql的where，例如WHERE AGE >= 25 AND SALARY >= 65000 时where为AGE >= -> 25; SALARY >= -> 65000
     */
    Map<String, String> where = null;
    String[] projections = null;

    public LocalRequestParams() {
    }

    public LocalRequestParams(String uniqueKey) {
        super(uniqueKey);
    }

    public Map<String, String> getWhere() {
        return where;
    }

    public LocalRequestParams setWhere(Map<String, String> where) {
        this.where = where;
        return this;
    }

    public String[] getProjections() {
        return projections;
    }

    public LocalRequestParams setProjections(String[] projections) {
        this.projections = projections;
        return this;
    }
}
